HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #pragma semicolon 1
  2. #include <sourcemod>
  3. #pragma newdecls required
  4.  
  5. public Plugin MyInfo =
  6. {
  7. name = "[L4D] Block Vote",
  8. author = "AlexMy",
  9. description = "",
  10. version = "1.0",
  11. url = ""
  12. };
  13.  
  14. public void OnPluginStart()
  15. {
  16. AddCommandListener(LockCommand, "callvote");
  17. }
  18. public Action LockCommand(int client, char [] command, int args)
  19. {
  20. char name[32];
  21. GetClientName(client, name, sizeof(name));
  22. if(client && IsPlayerAlive(client))
  23. {
  24. return Plugin_Continue;
  25. }
  26. else if (client && !IsPlayerAlive(client))
  27. {
  28. if(GetUserFlagBits(client) > 0) //
  29. { //
  30. return Plugin_Continue; ///A Halott Admin képes szavazni!!!
  31. } //
  32. PrintToChatAll("\x04%s \x03halottként megpróbált szavazni\x01!!!", name);
  33. return Plugin_Handled;
  34. }
  35. return Plugin_Continue;
  36. }